package com.wicket.okroperation.integration.dto;

import com.wicket.okroperation.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DataSeparationDto
 * @使用场景
 */
@Data
public class DataSeparationDto extends BaseDto implements Serializable {

  /**
   * 分离数据表主键ID
   */
  @ApiModelProperty("分离数据表主键ID")
  private String operationSeparatedDataId;

  /**
   * 表ID
   */
  @ApiModelProperty("表ID")
  private String tableId;

  /**
   * 中文表名
   */
  @ApiModelProperty("中文表名")
  private String tableCnName;

  /**
   * 英文表名
   */
  @ApiModelProperty("英文表名")
  private String tableEnName;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DataSeparationDto that = (DataSeparationDto) o;
    return (
      operationSeparatedDataId == that.operationSeparatedDataId &&
      tableId == that.tableId &&
      tableCnName == that.tableCnName &&
      tableEnName == that.tableEnName &&
      operationInductionId == that.operationInductionId &&
      operateTime == that.operateTime
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      operationSeparatedDataId,
      tableId,
      tableCnName,
      tableEnName,
      operationInductionId,
      operateTime
    );
  }

}
